﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using TopVidionApplication;

namespace VideoStream.Common
{
    public class ApplicationData
    {
        private static CompanyPro companyPro;
        private static string[] defaultResoluion = new string[] { "240p", "480p", "720p", "1080p", "AUTO" };

        public static string Account;
        public static string Password;
        public static string CallID;
        public static List<string> listRsl;

        public static CompanyPro _CompanyPro
        {
            get { return companyPro; }
            set
            {
                companyPro = value;
                listRsl = CommonFun.GetResolutionList(defaultResoluion, companyPro.resolution);
            }
        }


        #region Login

        public static bool KeepPassword = false;

        #endregion


        #region VideoCall temp data

        public static string tmpCamera;
        public static int tmpCameraIndex = 0;
        public static string tmpMicrophone;
        public static int tmpMicrophoneIndex = 0;
        public static string tmpResolution = "AUTO";
        public static string tmpSpeaker;
        public static int tmpSpeakerIndex = 0;
        public static string tmpCameraSelected;
        public static string tmpShardScreenSelected;
        public static string tmpCallID;
        public static string tmpShardScreen;
        public static string tmpCallInID;

        // mark data
        public static int markType = 0;
        public static string markColor;
        public static int markSolid = 0;

        // media
        public static string CallInRing => Application.StartupPath + @"\sounds\Ringin.wav";

        #endregion

    }
}
